package com.xzh.test;

import java.util.Arrays;
import java.util.Scanner;

public class kaoshi_4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入字符串：");
        String a=sc.nextLine();
        String arr=a.replaceAll(" ","");
        System.out.println(arr);
    }
}
